Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Adhoc task failed: mod_cms\task\update_files_context,Class 'csv_export_writer' not found #140

Merged
merged 1 commit into from
Nov 19, 2024

Conversation

Fragonite
Copy link
Contributor

@Fragonite Fragonite commented Nov 18, 2024

TL;DR

The task works when executed but fails when scheduled:

Backtrace:
* line 53 of /mod/cms/classes/task/update_files_context.php: call to mod_cms\task\update_files_context::update_contexts()
* line 413 of /lib/cronlib.php: call to mod_cms\task\update_files_context->execute()
* line 206 of /lib/cronlib.php: call to cron_run_inner_adhoc_task()
* line 175 of /admin/cli/adhoc_task.php: call to cron_run_adhoc_tasks()

This fix allows the scheduled task to run.

Testing

Upgrade the plugin.
Execute the pending ad hoc task.
Verify it completes.

@TomoTsuyuki TomoTsuyuki merged commit 1a0c35a into issue121-main Nov 19, 2024
18 checks passed
@TomoTsuyuki TomoTsuyuki deleted the issue121-main-fix branch November 19, 2024 00:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants